package com.example.hospitaldemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 入院记录表
 * </p>
 *
 * @author 张三
 * @since 2024-12-16
 */
@Getter
@Setter
@TableName("check_in_record")
public class CheckInRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 入院记录编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 病人编号
     */
    private String patientId;

    /**
     * 床位编号
     */
    private Integer zhiliaoshiId;

    /**
     * 入院时间
     */
    private LocalDateTime checkInTime;

    /**
     * 出院时间
     */
    private LocalDateTime checkOutTime;

    /**
     * 费用
     */
    private Double cost;

    /**
     * 说明
     */
    private String remark;

    /**
     * 病人表
     */
    @TableField(exist = false)
    private Patient patient;
    /**
     * 床位表
     */
    @TableField(exist = false)
    private Zhiliaoshi zhiliaoshi;
}
